package com.thoughtworks.yuyijq.generate.ui;

import com.intellij.codeInsight.generation.ClassMember;
import com.intellij.ide.util.MemberChooser;
import com.intellij.ide.util.MemberChooserBuilder;
import com.intellij.openapi.project.Project;

/**
 * User: yuyijq
 * Date: Oct 10, 2010
 * Time: 9:00:30 PM
 */
public class MyChooserBuilder extends MemberChooserBuilder{

    public MyChooserBuilder(Project project) {
        super(project);
    }

    public MemberChooser createBuilder(ClassMember[] members){
        this.allowEmptySelection(false);
        this.allowMultiSelection(true);
        this.copyJavadocVisible(false);
        this.overrideAnnotationVisible(true);
        this.setTitle("Choose Members for equals and hashCode");
//        ChooseTemplatePanel header = new ChooseTemplatePanel();
//        this.setHeaderPanel(header);

        return super.createBuilder(members);
    }
}
